<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>
<meta name="keywords" content="<?php echo $SEO['keyword'];?>">
<meta name="description" content="<?php echo $SEO['description'];?>">
<!--<link href="<?php echo CSS_PATH;?>reset.css" rel="stylesheet" type="text/css" />-->
<!--<link href="<?php echo CSS_PATH;?>default_blue.css" rel="stylesheet" type="text/css" />-->
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.min.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>jquery.sgallery.js"></script>
<script type="text/javascript" src="<?php echo JS_PATH;?>search_common.js"></script>

<!--引入AdminLTE css和js问价-->
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="<?php echo LTE_PATH;?>css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="<?php echo LTE_PATH;?>css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="<?php echo LTE_PATH;?>css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Morris chart -->
        <link href="<?php echo LTE_PATH;?>css/morris/morris.css" rel="stylesheet" type="text/css" />
        <!-- jvectormap -->
        <link href="<?php echo LTE_PATH;?>css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- Date Picker -->
        <link href="<?php echo LTE_PATH;?>css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
        <!-- Daterange picker -->
        <link href="<?php echo LTE_PATH;?>css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
        <!-- bootstrap wysihtml5 - text editor -->
        <link href="<?php echo LTE_PATH;?>css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="<?php echo LTE_PATH;?>css/AdminLTE.css" rel="stylesheet" type="text/css" />
        
               <!-- jQuery 2.1.1 -->
        <script src="<?php echo LTE_PATH;?>js/jquery-2.1.1.min.js" type="text/javascript"></script>
        <!-- jQuery UI 1.10.3 -->
        <script src="<?php echo LTE_PATH;?>js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="<?php echo LTE_PATH;?>js/bootstrap.min.js" type="text/javascript"></script>
        <!-- Morris.js charts -->
        <script src="<?php echo LTE_PATH;?>js/raphael-min.js"></script>
        <script src="<?php echo LTE_PATH;?>js/plugins/morris/morris.min.js" type="text/javascript"></script>
        <!-- Sparkline -->
        <script src="<?php echo LTE_PATH;?>js/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
        <!-- jvectormap -->
        <script src="<?php echo LTE_PATH;?>js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
        <script src="<?php echo LTE_PATH;?>js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
        <!-- jQuery Knob Chart -->
        <script src="<?php echo LTE_PATH;?>js/plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
        <!-- daterangepicker -->
        <script src="<?php echo LTE_PATH;?>js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
        <!-- datepicker -->
        <script src="<?php echo LTE_PATH;?>js/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
        <!-- Bootstrap WYSIHTML5 -->
        <script src="<?php echo LTE_PATH;?>js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
        <!-- iCheck -->
        <script src="<?php echo LTE_PATH;?>js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
		<!--angular-->
		<script src="<?php echo LTE_PATH;?>js/angular.js" type="text/javascript"></script>
		<script src="<?php echo LTE_PATH;?>js/app.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="<?php echo LTE_PATH;?>js/AdminLTE/app.js" type="text/javascript"></script>
<!--引入viewer和js问价-->

 <link href="<?php echo LTE_PATH;?>viewer/viewer.min.css" rel="stylesheet" type="text/css" />
  <script src="<?php echo LTE_PATH;?>viewer/viewer.min.js" type="text/javascript"></script>
        <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
        <!--<script src="<?php echo LTE_PATH;?>js/AdminLTE/dashboard.js" type="text/javascript"></script>-->


        <!-- AdminLTE for demo purposes -->
        <!--<script src="<?php echo LTE_PATH;?>js/AdminLTE/demo.js" type="text/javascript"></script>-->
<style>
	.ename{
		font-family:'Microsoft YaHei',SimHei;
		font-size: 14px;
		padding-right: 8px;
	}
	.cname{
		font-size: 14px;
		font-weight: bold;
		color:#CED9E7;
	}
</style>
</head>
    <body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="<?php echo siteurl($siteid);?>" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                
                <span class="ename"><?php echo L('ename');?><?php echo L('version');?></span><span class="cname"><?php echo L('cname');?></span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                        <li class="dropdown messages-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-envelope"></i>
                                <span class="label label-success">4</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有4条消息</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li><!-- start message -->
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="" class="img-circle" alt="User Image"/>
                                                </div>
                                                <h4>
                                                    支持团队
                                                    <small><i class="fa fa-clock-o"></i> 5 分钟前</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li><!-- end message -->
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="" class="img-circle" alt="user image"/>
                                                </div>
                                                <h4>
                                                    AdminLTE 设计团队
                                                    <small><i class="fa fa-clock-o"></i> 2 小时前</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="" class="img-circle" alt="user image"/>
                                                </div>
                                                <h4>
                                                    开发者
                                                    <small><i class="fa fa-clock-o"></i> 今天</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="" class="img-circle" alt="user image"/>
                                                </div>
                                                <h4>
                                                    销售部门
                                                    <small><i class="fa fa-clock-o"></i> 昨天</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <div class="pull-left">
                                                    <img src="" class="img-circle" alt="user image"/>
                                                </div>
                                                <h4>
                                                    Reviewers
                                                    <small><i class="fa fa-clock-o"></i> 2 天前</small>
                                                </h4>
                                                <p>Why not buy a new awesome theme?</p>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有消息</a></li>
                            </ul>
                        </li>
                        <!-- Notifications: style can be found in dropdown.less -->
                        <li class="dropdown notifications-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-warning"></i>
                                <span class="label label-warning">10</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有10条通知</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-people info"></i> 今天有5个新成员加入
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-warning danger"></i> Very long description here that may not fit into the page and may cause design problems
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="fa fa-users warning"></i> 5 new members joined
                                            </a>
                                        </li>

                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-cart success"></i> 25 sales made
                                            </a>
                                        </li>
                                        <li>
                                            <a href="#">
                                                <i class="ion ion-ios7-person danger"></i> 您修改了您的名字
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="footer"><a href="#">查看所有通知</a></li>
                            </ul>
                        </li>
                        <!-- Tasks: style can be found in dropdown.less -->
                        <li class="dropdown tasks-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-tasks"></i>
                                <span class="label label-danger">9</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="header">您有9条任务</li>
                                <li>
                                    <!-- inner menu: contains the actual data -->
                                    <ul class="menu">
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    设计按钮
                                                    <small class="pull-right">20%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">20% 已完成</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    新建一个漂亮的主题
                                                    <small class="pull-right">40%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">40% 已完成</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    一些该做的任务
                                                    <small class="pull-right">60%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">60% 已完成</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                        <li><!-- Task item -->
                                            <a href="#">
                                                <h3>
                                                    标准的翻译主题
                                                    <small class="pull-right">80%</small>
                                                </h3>
                                                <div class="progress xs">
                                                    <div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
                                                        <span class="sr-only">80% 已完成</span>
                                                    </div>
                                                </div>
                                            </a>
                                        </li><!-- end task item -->
                                    </ul>
                                </li>
                                <li class="footer">
                                    <a href="#">查看所有任务</a>
                                </li>
                            </ul>
                        </li>
                        <!-- User Account: style can be found in dropdown.less -->
<!--//<script type="text/javascript">document.write('<iframe src="<?php echo APP_PATH;?>index.php?m=member&c=index&a=mini&forward='+encodeURIComponent(location.href)+'&siteid=<?php echo get_siteid();?>" allowTransparency="true"  frameborder="0" scrolling="no"></iframe>')</script>-->	
            <li id="admin_header" class="dropdown user user-menu">
            	<?php if($_username) { ?>
            	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><?php echo L('hellow');?> <?php echo $user['nickname'];?> <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                               
                                <li class="user-header bg-light-blue">
                                    <img src="<?php echo get_memberavatar($_userid,90,90);?>" class="img-circle" alt="User Image" />
                                   <!--<img src="<?php echo $avatar['90'];?>" width="60" height="60" onerror="this.src='<?php echo $phpsso_api_url;?>/statics/images/member/nophoto.gif'"></a>-->
                                   <p>
                                        <?php echo $user['nickname'];?>- <?php echo $groupname['name'];?><?php echo L('hellow');?>
                                        <small>注册日期：<?php echo date('Y-m-d',$user['regdate']);?></small>
                                    </p>
                                </li>
                             
                                <!--<li class="user-body">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">粉丝</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">关注</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">好友</a>
                                    </div>
                                </li>-->
                         
                                <li class="user-footer">
                                    <div class="pull-left">
                                        <!--<a href="<?php echo APP_PATH;?>index.php?m=member&siteid=<?php echo $siteid;?>"  class="btn btn-default btn-flat">个人资料</a>-->
                                        <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=account_manage&siteid=<?php echo $siteid;?>"  class="btn btn-default btn-flat">个人资料</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=logout&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top" class="btn btn-default btn-flat">注销登录</a>
                                    </div>
                                </li>
                            </ul>
            	<?php } else { ?>
            	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span><?php echo L('viewer');?><i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                               
                                <li ><a role="menuitem" tabindex="-1" href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>" target="_blank"><?php echo L('register');?></a></li>
								<li ><a role="menuitem" tabindex="-1" href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top"><?php echo L('login');?></a></li>
								<li role="separator" class="divider"></li>
								 <li ><a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo siteurl($siteid);?>');"><?php echo L('homepage');?></a>
        </li>
       <li > <a href="javascript:window.external.AddFavorite('<?php echo siteurl($siteid);?>','<?php echo $SEO['site_title'];?>')"><?php echo L('collection');?></a> </li>
                            </ul>
            	<?php } ?>
            </li>            	
 
                     
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                    	<?php if($_username) { ?>
                        <div class="pull-left image">
                            <img src="<?php echo get_memberavatar($_userid,90,90);?>" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p><?php echo L('hellow');?> <?php echo $user['nickname'];?> </p>

                            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                        </div>
                        	<?php } else { ?>
                        	   <div class="pull-left image">
                            <img src="<?php echo IMG_PATH;?>/member/nophoto.gif" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p><?php echo L('hellow');?> <?php echo L('viewer');?></p>

                            <a href="#"><i class="fa fa-circle text-info"></i> 离线</a>
                        </div>
                        <?php } ?>
                    </div>
                    <!-- search form -->
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="搜索..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
          <!--菜单显示-->          
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b43f1459ac702900c8d44c91a5e796dd&action=category&catid=0&num=25&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'25',));}?>
        	<ul class="sidebar-menu">
			<li class="active"><a href="<?php echo siteurl($siteid);?>"> <i class="fa fa-dashboard"></i> <span>首页</span></a></li>
			
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			
			<!--判断是否有子栏目-->
			<?php if($r[child]>0) { ?>
			 <li class="treeview">
                <a href="#" >
                    <i class="fa <?php echo $r['caticon'];?>"></i> <span><?php echo $r['catname'];?></span> 
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
				<!--二级-->
				<ul class="treeview-menu">
					<?php $n=1;if(is_array(subcat($r['catid']))) foreach(subcat($r['catid']) AS $c2) { ?>
		     			<li><a href="<?php echo $c2['url'];?>"><i class="fa <?php echo $c2['caticon'];?>"></i> <?php echo $c2['catname'];?>
		     			<?php if($c2[items]>0) { ?>                    
                        <small class="badge pull-right bg-yellow"><?php echo $c2['items'];?></small>
                    	<?php } ?>
		     			</a></li>
		      		<?php $n++;}unset($n); ?>
				</ul>	
				<!--二级-->
				</li>
			<?php } else { ?>
				 <li>
                    <!--<a href="#" onclick="linkpost('<?php echo $r['url'];?>')">-->
                    <a href="<?php echo $r['url'];?>">
                        <i class="fa <?php echo $r['caticon'];?>"></i> <span><?php echo $r['catname'];?></span> 
                        <?php if($r[items]>0) { ?>                    
                        <small class="badge pull-right bg-yellow"><?php echo $r['items'];?></small>
                    	<?php } ?>
                    </a>    
				</li>	
			<?php } ?>
			 
			<?php $n++;}unset($n); ?>
			<!--单网页显示 start-->
			<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=e3d146232857be4579899ac97dbd2f7c&action=category&catid=1&num=15&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'1','siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'15',));}?>
				<?php $n=1;if(is_array($data)) foreach($data AS $ra) { ?>
					<li>
						<a href="<?php echo $ra['url'];?>">
							<i class="fa <?php echo $ra['caticon'];?>"></i> <span><?php echo $ra['catname'];?></span>
					
						</a>
					</li>
				<?php $n++;}unset($n); ?>
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			<!--<li>
				<a href="<?php echo APP_PATH;?>index.php?m=link">
					<i class="fa fa-link"></i> <span>友情链接</span>
			
				</a>
			</li>-->
			<!--单网页显示 end-->
            </ul>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		<?php echo runhook('glogal_menu')?>
		



                </section>
                <!-- /.sidebar -->
            </aside>

 <script type="text/javascript">
 	
</script>

